package com.rainy.cloud.gateway.enums;

import java.util.Arrays;
import java.util.List;

/**
 * @author user
 */
public enum RootNode {
    /**
     * 项目路由节点代码
     */
    DEMO("demo", "测试样例", "/hello", "8300");

    private String code;

    private String name;

    private String rootPath;

    private String port;

    RootNode(String code, String name, String rootPath, String port) {
        this.code = code;
        this.name = name;
        this.rootPath = rootPath;
        this.port = port;
    }

    public static List<RootNode> getRootNodes() {
        return Arrays.asList(RootNode.values());
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getPort() {
        return port;
    }

    public String getRootPath() {
        return rootPath;
    }
}
